<!--<script language="javascript" src="<?php echo base_url(); ?>application/views/farmacia/ventaFarmacia.js"></script>-->
<form class="form-horizontal" method="post" action="<?php echo base_url(); ?>farmacia/mostrarVenta" accept-charset="utf-8">
    <legend>REGISTRO DE VENTA</legend>
    <table >
        <tr>
            <?php 
            $ventaCabecera = $this->args["ventaCabecera"];
            $ventaDetalle = $this->args["ventaDetalle"];
          
            ?>
            
            <td align="center" width="25%"> Persona </td>
            <td align="center" width="25%"> <?php echo $ventaCabecera[0]["tipoDoc"] ?> </td>
            <td align="center" width="25%"><?php echo $ventaCabecera[0]["codDoc"] ?></td>
            <td align="center" width="25%"><?php echo $ventaCabecera[0]["nombre"] ?></td>
        </tr> 
    </table>
    
    <legend>DETALLE DE VENTA</legend>
    <table class="table table-hover" id="detalle">
        <tr>
            <td  width="05%">N*</td>
            <td  width="15%">Código</td>
            <td  width="20%">Descripcion</td>
            <td  width="10%">Laboratorio</td>
            <td  width="10%">Precio</td>
            <td  width="10%">Cant.</td>
            <td  width="10%">Total</td>
        </tr>   
        <?php 
      
                  for ($i = 0; $i < count($ventaDetalle); $i++){
        
        
        ?>
        <tr>
            <td ><?php echo ($i+1)?></td>
            <td ><?php echo $ventaDetalle[$i]["codProducto"]?></td>
            <td ><?php echo $ventaDetalle[$i]["descProducto"]?></td>
            <td ><?php echo $ventaDetalle[$i]["laboratorio"]?></td>
            <td ><?php echo $ventaDetalle[$i]["precio"]?></td>
            <td ><?php echo $ventaDetalle[$i]["cantidad"]?></td>
            <td ><?php echo $ventaDetalle[$i]["totParcial"]?></td>
        </tr>
        
        
        <?php } ?>
        
     </table>
      <table class="table table-hover">
        <tr>
            <td  width="05%"></td>
            <td  width="25%"></td>
            <td  width="50%" align="left">Precio Total</td>
            <td align="right" width="20%"><?php echo $ventaCabecera[0]["total"] ?></td>
        </tr>   

   
     </table>
    
    
    
        
</form>
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
</form>
